using net_work.Data.DTO.Hmw;
using net_work.Data.Entity.Hmw;

namespace net_work.IRepository.Hmw;

public interface IBankAnswerRepository : IRepository<BankAnswer>
{
    /// <summary>
    /// 插入题库答案
    /// </summary>
    /// <param name="bankAnswerAddRequest">插入题库答案</param>
    /// <returns>插入的ID</returns>
    Task<long> InsertAsync(BankAnswerAddRequest bankAnswerAddRequest);

    /// <summary>
    /// 更新题库答案信息
    /// </summary>
    /// <param name="bankAnswerUpdateRequest">更新题库答案信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(BankAnswerUpdateRequest bankAnswerUpdateRequest);
}